//
//  ContentView.swift
//  MusicApp
//
//  Created by tianjs on 2023/4/17.
//

import SwiftUI

@Observable
final class Store {
    var products:[String] = []
    var favorites:[String] = []
    
    func fetch() async {
        try? await Task.sleep(nanoseconds: 1_000_000_000)
        
        products = [
            "product 1",
            "product 2",
        ]
    }
}

struct ContentView: View {
//    let store: Store
    var body: some View {
//        VStack {
//            Image(systemName: "globe")
//                .imageScale(.large)
//                .foregroundColor(.accentColor)
//            Text("Hello, world!")
//        }
//        .padding()
//        VStack {
//            BaseTabBarView()
//        }
        BaseTabBarView()
        
//        NavigationStack {
//            List(store.products, id: \.self) { product in
//                Text(verbatim: product)
//            }
//            .navigationTitle("Products")
//            .overlay {
//                if store.products.isEmpty {
//                    ContentUnavailableView("Connection issue", systemImage: "circle")
//                }
//            }
//        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
//        ContentView(store: Store())
        ContentView()
    }
}
